fixed typo and changed database param update behavior

the update message will only appear when the env varibles are changed