A few small fixes for user-access.

Changed references in query from table to database.
Mapped PUT to update -> grant in resource mapper.
Fixed return types of revoke and access.

Change-Id: Icfab78ae0a0ab43cf80c52b3ce1b39e770ef9213