librarytree: Use pragha_database_get_filename_from_location_id() and port it to PreparedStatement.