Used separate dbopen file to establish db connection