changes related to https://wso2.org/jira/browse/BPS-574 ( Moving the artifact storage from Registry to BPS corresponding DB )

Fixed it and send a PR [1]

[1] https://github.com/wso2-dev/carbon-business-process/pull/24