Updated for current PouchDB api

Main obj changed name to PouchDB + their docs sample uses "new" to create the object. Also updated tests and ran them.