implement fetch_one method