You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: extra_db.rs
    path of file: ./repos/loco/loco-extras/src/initializers
    
    the code of the file until where you have to start completion: use async_trait::async_trait;
use axum::{Extension, Router as AxumRouter};
use loco_rs::{db, prelude::*};

#[allow(clippy::module_name_repetitions)]
pub struct ExtraDbInitializer;

#[async_trait]
impl Initializer for ExtraDbInitializer {
    fn name(&self) -> String {
        "extra-db".to_string()
    }

    async fn after_rou
    
    async fn after_routes(&self, router: AxumRouter, ctx: &AppContext) -> Result<AxumRouter> {
        let extra_db_config = ctx
            .config
            .settings
            .clone()
            .ok_or_else(|| Error::Message("settings config not configured".to_string()))?;

        let extra_db_value = extra_db_config
            .get("extra_db")
            .ok_or_else(|| Error::Message("settings config not configured".to_string()))?;

        let extra_db = serde_json::from_value(extra_db_value.clone())?;

        let db = db::connect(&extra_db).await?;
        Ok(router.layer(Extension(db)))
    }