Fixed: Several MySQL query optimizations for device updates and event checking.
Fixed: Get interface id's once for every plugin only at startup.
Fixed: Removed alot of show table calls.