Authorisation feature to db