postdb.js - refactor create()