Get the current id for each table in the database

        Args:
            source (boolean): get the id for the table "library_spectra_source" will update self.current_id_origin
            meta (boolean): get the id for the table "library_spectra_meta" will update self.current_id_meta
            spectra (boolean): get the id for the table "library_spectra" will update self.current_id_spectra
            spectra_annotation (boolean): get the id for the table "library_spectra_annotation" will update
                                          self.current_id_spectra_annotation

def _get_current_ids(self, source=True, meta=True, spectra=True, spectra_annotation=True):
        """Get the current id for each table in the database

        Args:
            source (boolean): get the id for the table "library_spectra_source" will update self.current_id_origin
            meta (boolean): get the id for the table "library_spectra_meta" will update self.current_id_meta
            spectra (boolean): get the id for the table "library_spectra" will update self.current_id_spectra
            spectra_annotation (boolean): get the id for the table "library_spectra_annotation" will update
                                          self.current_id_spectra_annotation

        """
        # get the cursor for the database connection
        c = self.c
        # Get the last uid for the spectra_info table
        if source:
            c.execute('SELECT max(id) FROM library_spectra_source')
            last_id_origin = c.fetchone()[0]
            if last_id_origin:
                self.current_id_origin = last_id_origin + 1
            else:
                self.current_id_origin = 1

        if meta:
            c.execute('SELECT max(id) FROM library_spectra_meta')
            last_id_meta = c.fetchone()[0]

            if last_id_meta:
                self.current_id_meta = last_id_meta + 1
            else:
                self.current_id_meta = 1

        if spectra:
            c.execute('SELECT max(id) FROM library_spectra')
            last_id_spectra = c.fetchone()[0]

            if last_id_spectra:
                self.current_id_spectra = last_id_spectra + 1
            else:
                self.current_id_spectra = 1

        if spectra_annotation:
            c.execute('SELECT max(id) FROM library_spectra_annotation')
            last_id_spectra_annotation = c.fetchone()[0]

            if last_id_spectra_annotation:
                self.current_id_spectra_annotation = last_id_spectra_annotation + 1
            else:
                self.current_id_spectra_annotation = 1