using postgresql db, plus a few minor visual fixes