change sqlite3 to pg, remove javascript for now