make sure dsn is passed everywhere