Use DB to manage credentials