Make it easier to determine source of SQL error
Split entries table into three separate tables to save space and make lookup faster. Fix issue with lookup not being case sensitive.