Working with relational databases and persistent storage