added support for table prefix in database. It can now be used with icinga and idoutils as well which has a standard prefix of icinga_