cleanup bootstrap and use new pgrest_param api