Adds callback for enabling foreign key constraints

proposed in https://github.com/robotoworks/mechanoid/issues/76
Adds semicolon
switch if case order

Original order means that the second if actually never gets executed.
Merge pull request #99 from imminent/patch-1

Adds callback for enabling foreign key constraints