moving delete query creation into mysql class