Finalize the get and put methods of DB-backed map, and create test.