connect DB in constructor