implemented list, added useful methods to Database