Some fixes

- fixed IDatabaseReader
- fixed SessionFactory ctor
- cleaned up assembly file