Updates to fix post insert handling; unfixed errors involving sqlite access discovered.