Re-enable SQLite query tests

The issue is caused by double prefixing and non-prefixing of inner joints
during the DB `select` by MW's DB interface.