Added catch for undefined db_user