queries sql cleanup for user