Implemented reading scenarios from database

Relates to #151