Fixes bug with lazy associations and db binding