#26 fixed problems with database creating