Update: implement locking system on database store
Update: replace go-msgpack with codec package