Add databasefactory 

 	Add databasefactory