Added basic exception handling for database connections Also added a .gitignore file and set the logger's log level to debug.
\approve @ds @fd @nicgar