Completed coding to configure multiple datastores in a component