added databaseliaison function