Bug fixes.

* Fix bug with pulling items from the database.
* Add uid column value when saving an item.