Agreed, specifically setting $db_name within this function now.