Update .gitignore to include database.yml and .secret.

Also adds doc/, .project, and .idea
Convert database to use postgresql in all environments