Delete records method in database class