SQL instead of daft looping