Don't make an additional embedded query in deleting sync sessions.

Especially as this breaks MySQL.
Don't have a maximum number of syncsession records by default.
Merge pull request #142 from jamalex/fix_syncing

Fixes to deleting older sync sessions