added database functions to help populatedb create database according to what the server expects