ensuring db type is actually read (#1)