more cleanup on db restart
always override browserid
app_url and avoid browserid in development mode