normalise resource data

create a table to contain resource specific attributes.
the new resource table will contain:
- id
- resource_id,
- project_id,
- user_id,
- source_id
- resource_metadata
- metadata_hash

we will only capture unique resources (ie. unique ids or metadata)

Closes-Bug: #1320257
Implements: blueprint bigger-data-sql
Co-Authored-By: Srinivas Sakhamuri <srinivas.sakhamuri@hp.com>
Change-Id: I4a32688ad3a78e574e018a154cb145e31da6298e
Merge "normalise resource data"