Updated script to create database and user for functional tests