Updated some relations; Fixed MySQL incompatibilities