code: def _update_database_flag(
              self,
              exposures):
          
          self.log.info('starting the ``_update_database_flag`` method')
  
          allExposures = []
          for e in exposures:
              allExposures += e
  
          expIds = []
          expIds[:] = [e["expname"] for e in allExposures]
  
          expIds = ('","').join(expIds)
  
          sqlQuery = """update atlas_exposures a, pyephem_positions p set a.pyephem_positions = 1 where a.pyephem_positions = 0 and a.expname=p.expname;""" % locals(
          )
          writequery(
              log=self.log,
              sqlQuery=sqlQuery,
              dbConn=self.atlasMoversDBConn,
          )
  
          sqlQuery = """update atlas_exposures set pyephem_positions = 2, dophot_match = 2, orbfit_positions = 2 where pyephem_positions = 0 and expname in ("%(expIds)s");""" % locals(
          )
          writequery(
              log=self.log,
              sqlQuery=sqlQuery,
              dbConn=self.atlasMoversDBConn,
          )
  
          self.log.info('completed the ``_update_database_flag`` method')
          return None
docs: * update database flag*
  
          **Key Arguments:**
              - ``exposures`` -- the atlas exposure to update the database flags for