Framework for different database types