add db auth
remove useless code
fix typo and add gitignore
ignore key and pem files