update deps for pg
add CORS support