use connection instead of mongoose