Added password file for sensitive database information

- Also cleaned up newPopup function
(Don't know if I broke it or not, sorry dan)