Fixes for params in mysql commands