Database interface defined