Revised provisioning script to automatically setup a database.