Several improvements also check if last data returned from database is not to old.