Changed the way the db creds are handled.