Remove database factory