added db close