Adding some exception handling to the command
Logging when running a management command
Not creating records twice for the same writeitinstance and popit instance