clean up some sql errors from the logs