Added support for webapp database permissions