Working on database abstraction