updating to support version 3.0, and deprecation of db in favor for pg