added tool to verify keys in database and cleanup orphans, fixed #7