Fixed bad sql command for data clearing