add params for mysql selection.