Prevent server from crashing with an empty database