[issue/17] Use \OC\Preferences::getValueForUsers() instead of custom queries

Fix #17