docs: def _parse_lines(self, f, chunk, db_type, celery_obj=False, c=0):
          """Parse the MSP files and insert into database
  
          Args:
              f (file object): the opened file object
              db_type (str): The type of database to submit to (either 'sqlite', 'mysql' or 'django_mysql') [required]
              chunk (int): Chunks of spectra to parse data (useful to control memory usage) [required]
              celery_obj (boolean): If using Django a Celery task object can be used to keep track on ongoing tasks
                                [default False]
              c (int): Number of spectra currently processed (will reset to 0 after that chunk of spectra has been
                       inserted into the database
          """
          old = 0
  
          for i, line in enumerate(f):
  
              line = line.rstrip()
  
              if i == 0:
                  old = self.current_id_meta
  
              self._update_libdata(line)
  
              if self.current_id_meta > old:
                  old = self.current_id_meta
                  c += 1
  
              if c > chunk:
  
                  if celery_obj:
                      celery_obj.update_state(state='current spectra {}'.format(str(i)),
                                              meta={'current': i, 'total': self.num_lines})
                  print(self.current_id_meta)
                  self.insert_data(remove_data=True, db_type=db_type)
                  self.update_source = False
                  c = 0
          return c