calling Dabase from display.java -> signedInHomepage class -> getTopMessages function