Various db upgrades

Three database upgrades bundles together in single pull request for convenience.

* Metadata modifed

Make metadata modified a field in package table to make it possible for @wardi to speed up package show

* creator user id

cache datasets creators user id

* url type

Add url type for later making relative resource possible