Added safe rescue of invalid argument for Integer(). Removed limit query method for delete_all and delete. Added template to prevent crashing when exception occurs in object_remove.