switched to pg database