React js sql query builder