Fix registry DB upgrade script to remove db prefix
Fix error handler for development environments