removed need for old db and added test for new.db