Added get records from DB and their display in view functions