Started making database wrapper a little bit smarter.
Added flags for items.