don't overwrite database unless it has grown