protected function registerDatabaseCommand()
    {
        $app = $this->app;

        $app['command.queue.database'] = $app->share(function ($app) {
                return new DatabaseCommand();
            });

        $this->commands('command.queue.database');
    }