change raise to log in setup_db_connection