Config test and add DBFactory and DataBase API