fix to create the DB properly if it doesn't yet exist