async fn create_state_manager_and_populate(
    config: Config,
    db_name: String,
) -> Result<()>