postgresql with rest support using plv8