flesh out postgres and memcache