Updated dependencies
Ensured that the programm does not crash running on an empty database