Add proper error handling.

Summary:
Add dbc error handling when create_new()/open() encounter issues.

Test Plan:
Run
> ./mwsd -I ../data/zbl
> ./mwsd -I ../data/zbl -D /root/ --leveldb
See errors being reported.

Reviewers: cprodescu

Differential Revision: http://phab.code4fun.de/D35