modified for db credentials changes