- Further fixed primary & foreign keys definition.
- Fixed INSERT statements which aren't properly escaped.