made use of db credentials dynamic based on environment or #6