Code changes for pagination and added code for adding transaction in DB.