Added db script for review history table creation and added the changes to fix the issues in reviews related functionality.