modified for db credentials