Prevent writing an empty db

Bumped up Immediate accuracy