Bahmni not syncing with OpenELIS

I got it fixed by running the queries on this post.