cleanup comments and mysql commands