Loading and saving data from relational databases