Check postgres extracts key from insert result