Table_prefix & Ushahidi 2.7.4

Fixed to run with table_prefix. I've tested it on Ushahidi 2.7.4