Optional mysql command, adding error message when command isn't found