added readOne function to database and abstract crud model