Add decorator to catch database OperationalError exceptions.
Remove check for HTTP request time from views.