updating mongodb logic completed but subject to change in schema