Update Database.class.php

Added retrieveNewest function