module specific functions sql
security supports local permissions