Lastcheck call to the database.