Implementation of Database Interface