Added a method to reader class which reads rating from the database