move dbconfig and dbsetup to config