Move from CouchDB to Postgres

Increase likelihood of other people being able to maintain the application by moving to postgres :smile: