.gitignore

Ignore eclipse stuff.
Rearrange database connection

It's now making a database connection everytime it's run, which will
hopefully solve my issues.
Trim whitespace