Save habitation in db, created needed tables