Bugfix MySQL delete method