Connected to DB to manage security.