fixed typo in db fetch