beginning to integrate postgres cache layer.