added doctrine options to default config
added 404 error for non localhost access to the cron controller