ensured Database is correctly created. Will deal with other issues later.