Delete Bug Fix

Fixed SQL Query for Deleting Checks