converting to ezSQL