final fixes

removed couts, added deleteQuery
final changes