Fixed db check, dbconnection, dbconfig