Use new couch_db APIs for uuids and epochs

This uses the new API to get the uuid and epochs for a database.