Changed db_debug to false so that db errors don't show in production, fixed bug with duplicate registration