Added a stream constructor to DatabaseReader