Abstraction of the basic database queries