needs to scan all tables