Method of Retrieving Records from a Database