Clean up retrieving values from a database reader.