Set security preferences on a database