Added /dist/ to gitignore
Better handling of db connection