changes to now function in databaseinterface