Fixes bug with lazy associations and db binding

Sorry about the whitespace differences...my emacs is setup to save with cleanup of whitespace...

The issue that this fixes is when you have a lazily loaded association, the database binding is escaped.  I've fixed this by associating the currently bound db to the ent.  I'm not sure this is the best fix, but it was the least intrusive.