updates, added db class