Fix error message in database permissions

Show the message from the server instead of the whole JSON as text