modify SQL commands to equal rather than less than