MOTECH-722 Prepare modules repository for PostgreSQL support

The changes include a new script for the Batch module, that works
with PostgreSQL datastore and a change in CMS Lite module, to avoid
duplicate constraint names.

Change-Id: Idd47045d12b49463cba3fb8a79afa632b6fd6301