refactored mysql database/user