added db methods file