Fix a small issure with pg - foreign keys should not be a SERIAL type