Updated Dao to properly close connections
Added config.properties to the .gitignore