extract get_db_path to utils