moved DB into class and memoized connection (prep for testing env db)