*Import any new ATLAS pointings from the atlas3/atlas4 databases into the ``atlas_exposures`` table of the Atlas Movers database*

        **Key Arguments:**
            - ``recent`` -- only sync the most recent 2 weeks of data (speeds things up)

        **Return:**
            - None

         **Usage:**

            .. code-block:: python

                from rockAtlas.bookkeeping import bookkeeper
                bk = bookkeeper(
                    log=log,
                    settings=settings
                )
                bk.import_new_atlas_pointings()

def import_new_atlas_pointings(
            self,
            recent=False):
        """
        *Import any new ATLAS pointings from the atlas3/atlas4 databases into the ``atlas_exposures`` table of the Atlas Movers database*

        **Key Arguments:**
            - ``recent`` -- only sync the most recent 2 weeks of data (speeds things up)

        **Return:**
            - None

         **Usage:**

            .. code-block:: python

                from rockAtlas.bookkeeping import bookkeeper
                bk = bookkeeper(
                    log=log,
                    settings=settings
                )
                bk.import_new_atlas_pointings()
        """
        self.log.info('starting the ``import_new_atlas_pointings`` method')

        if recent:
            mjd = mjdnow(
                log=self.log
            ).get_mjd()
            recent = mjd - 14
            recent = " mjd_obs > %(recent)s " % locals()
        else:
            recent = "1=1"

        # SELECT ALL OF THE POINTING INFO REQUIRED FROM THE ATLAS3 DATABASE
        sqlQuery = u"""
            SELECT
                `expname`,
                `dec` as `decDeg`,
                `exptime` as `exp_time`,
                `filter`,
                `mjd_obs` as `mjd`,
                `ra` as `raDeg`,
                if(mjd_obs<57855.0,mag5sig-0.75,mag5sig) as `limiting_magnitude`,
                `object` as `atlas_object_id` from atlas_metadata where %(recent)s and object like "TA%%" order by mjd_obs desc;
        """ % locals()
        rows = readquery(
            log=self.log,
            sqlQuery=sqlQuery,
            dbConn=self.atlas3DbConn,
            quiet=False
        )

        dbSettings = self.settings["database settings"]["atlasMovers"]

        # TIDY RESULTS BEFORE IMPORT
        entries = list(rows)

        if len(rows) > 0:
            # ADD THE NEW RESULTS TO THE atlas_exposures TABLE
            insert_list_of_dictionaries_into_database_tables(
                dbConn=self.atlasMoversDBConn,
                log=self.log,
                dictList=entries,
                dbTableName="atlas_exposures",
                uniqueKeyList=["expname"],
                dateModified=False,
                batchSize=10000,
                replace=True,
                dbSettings=dbSettings
            )

        recent = recent.replace("mjd_obs", "mjd")

        # SELECT ALL OF THE POINTING INFO REQUIRED FROM THE ATLAS4 DATABASE
        sqlQuery = u"""
            SELECT
                `obs` as `expname`,
                `dec` as `decDeg`,
                `texp` as `exp_time`,
                `filt` as `filter`,
                `mjd`,
                `ra` as `raDeg`,
                `mag5sig` as `limiting_magnitude`,
                `obj` as `atlas_object_id` from atlas_metadataddc where %(recent)s and obj like "TA%%" order by mjd desc;
        """ % locals()
        rows = readquery(
            log=self.log,
            sqlQuery=sqlQuery,
            dbConn=self.atlas4DbConn,
            quiet=False
        )

        # TIDY RESULTS BEFORE IMPORT
        entries = list(rows)

        if len(rows) > 0:
            # ADD THE NEW RESULTS TO THE atlas_exposures TABLE
            insert_list_of_dictionaries_into_database_tables(
                dbConn=self.atlasMoversDBConn,
                log=self.log,
                dictList=entries,
                dbTableName="atlas_exposures",
                uniqueKeyList=["expname"],
                dateModified=False,
                batchSize=10000,
                replace=True,
                dbSettings=dbSettings
            )

        # APPEND HTMIDs TO THE atlas_exposures TABLE
        add_htm_ids_to_mysql_database_table(
            raColName="raDeg",
            declColName="decDeg",
            tableName="atlas_exposures",
            dbConn=self.atlasMoversDBConn,
            log=self.log,
            primaryIdColumnName="primaryId"
        )

        print "ATLAS pointings synced between ATLAS3/ATLAS4 databases and the ATLAS Movers `atlas_exposures` database table"

        self.log.info('completed the ``import_new_atlas_pointings`` method')
        return None