finalized code for update but didn't test it
database credentials loading from .env removed db cred from constants updated tests accordingly