Move database config to its own file

Move the database settings to its own file. This makes it easier if we want to create a web based installer.

I also added the new config file to .gitignore so we don't have to worry about pushing our own settings while developing.