Added promises in the MySQL util class
Code cleanup