added db methods