added missing methods in databasecontroller