general query clean up, added comments everywhere, added delete stack to delete user