ticket:10: fixing problem with nonexisting tables