Stacktrace will be printed if something goes wrong with the database