FLOE-206: Updating tests and datasource

Updated the datasource and tests after upgrading PouchDB. Now using promises.