add auth options to access database

Add options:
1. db_passwd
2. db_host
3. db_port

merge to latest code version.