added instance to Db class, allows for using one instance for multiple scripts