updated db.go in post