Do you need a database, or could you make do with 3,000 ~1KB json files filled with regexes?(The database probably would have been easier but this is definitely cheaper to host.)