attempt to write to second db with check remaining called added