Database: implemented reflection exceptions
Database: added tests for reflection exceptions
Database: reflection can return only NULL [Closes #778]
Merge pull request #972 from hrach/database-reflection

Database reflection