Issue #2971033 by mErilainen, drunken monkey, borisson_: Added an option for prefix matching to the database backend.