Fixed the database sort and limitied it to 20 entries displayed