Small fixes

Still get an error after this:

05-29 12:27:13.227: I/Database(22001): sqlite returned: error code = 284, msg = automatic index on item_media(item_media_item_id)