Getting errrors on $db->getDatabaseName method does not exist. Removed this because seems to be old code.
Updating model builder to build proper syntax for foreign key
Merge pull request #122 from richmulhern/dbnamefix

Getting errrors on $db->getDatabaseName method does not exist
Merge pull request #123 from MatejBalantic/master

Updating model builder to build proper syntax for foreign key