Drop ShadowSQLiteOpenHelper, fix DB opening behaviour

Closes #675