Refactor MySQL specific away from Database