added db handler and data models