Persistence layer to test against different databases