[database] update dependencies in package.json
[database] improve database connection error management