added findOne method for record