fixing original code to allow db create to work