Changed how db credentials are stored.