Fixed few bigs including passing the :created_on param to the delete query.