fixed db issue#1, added update operation to db interface