def db_config
      @db_config ||= begin 
        raise "ENV['#{env_prefix}_DATABASE_URL'] expected but not found!" unless ENV["#{env_prefix}_DATABASE_URL"]
        config = parse_db_uri(ENV["#{env_prefix}_DATABASE_URL"])
    
        if ENV["#{env_prefix}_DATABASE_CA"]
          config.merge!(db_configuration({
            :sslca => ENV["#{env_prefix}_DATABASE_CA"],
            :sslcert => ENV["#{env_prefix}_DATABASE_CERT"],
            :sslkey => ENV["#{env_prefix}_DATABASE_KEY"],
          }))
        end
      
        config
      end
    end
def db_config
      @db_config ||= begin 
        raise "ENV['#{env_prefix}_DATABASE_URL'] expected but not found!" unless ENV["#{env_prefix}_DATABASE_URL"]
        config = parse_db_uri(ENV["#{env_prefix}_DATABASE_URL"])
    
        if ENV["#{env_prefix}_DATABASE_CA"]
          config.merge!(db_configuration({
            :sslca => ENV["#{env_prefix}_DATABASE_CA"],
            :sslcert => ENV["#{env_prefix}_DATABASE_CERT"],
            :sslkey => ENV["#{env_prefix}_DATABASE_KEY"],
          }))
        end
      
        config
      end
    end
Returns an ActiveRecord configuration hash based on the environment variables.