Automated database creation. Better error messages if bad things happen