Allow foreign key filed names to be the same

The cursor methods are now:

```getTableNameFieldName``` for foreign keys