Add databasefactory