more work on Dao
Item: key/value/metadata -> id/data/metadata