[sql] add startswith/endswith functions