small changes -- 2 table db works