code cleanup
trying different approach to measuring
added delete functionality for SQL