RFE#706: Multi-db privileges adding.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
Fix test.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>