Added security features
Authorisation feature to db