docs: def get_last_id(self, cur, table='reaction'):
          """
          Get the id of the last written row in table
  
          Parameters
          ----------
          cur: database connection().cursor() object
          table: str
              'reaction', 'publication', 'publication_system', 'reaction_system'
  
          Returns: id
          """
          cur.execute("SELECT seq FROM sqlite_sequence WHERE name='{0}'"
                      .format(table))
          result = cur.fetchone()
          if result is not None:
              id = result[0]
          else:
              id = 0
          return id