make it work on SL6 and remove SiteDB v1 API. fix #1102