Fixes bug in search reported by d0rm0us3

Fix for [FixRM #7989]. Made database search use matches (LIKE) instead
of equality for cve/bid/osvdb, since this is how the slow search does
it. Left it anchored at the beginning, so query is something like:

    SELECT * from X WHERE id LIKE 'CVE-2013%'

for a query of: search cve:2013