C0103 fixes 4, datastore and db_store changes

This PR is dependent on #1110.