creating resources on chain in local database