Bugfix #94 Check samba sid before modifying Database