Implement db#fetch as per #4