Create database class abstraction