add interface to Database class,  DatabaseRecord.h fix