updated to use database role