parsing GET Paramater and generate sqla query.