automatic creation of db