Significant sync enhancements. Added fk dependency handling, and sorting of push records by table