Add checkings for database. Fixes #385
No app at this level
Merge pull request #387 from guillermo-carrasco/master

Exception handling for missing flowcells in database