Better SQL Query for updateing pods