Hook up postgres backend.