now uses PG locally again. comment out extra stuff in js