Organize the code of MySQL-related