changes to compact db only if size increeases over 500mb of last compacted db size