2 small scripts for data-management on postgres and couchDB.