Added database authorisation.