fix bug returning too many rows from db-get
fix the tests for the db-get change
fix the db-put checking for the existing value