Add option to set privileges in the db variable