refctor default dsn
authenticate