Added dsn configuration option for databases