Update findOne in ModelManager

Add additonal error handling.
Change the way the join is done.
Change the creation foreignKeys.
Add tableNameLookup for use in the joins to track the As t0 etc.