Fixed bugs for recipe and material loading.

* fixed loaded recipes to have correct id.

* fixed material loading to not filter by time because mats are only
  snapshoted once per state anyway - and the resource state id is already
  unique. Removed the time field from the MaterialInfo table.