CORE-1814 Fix database script

This commit fixes two minor issues with the create-databases.sh
script that were preventing it from working as intended, as well
as adds suppression of the database password from being logged
during this process.

Change-Id: Id35661bd342837d545031bf05e0aa5790688a4e7