code: def current_db_version(self):
          
  
          query = """
          SELECT version from {} WHERE success = TRUE ORDER BY version DESC
          """.format(self.upgrades_table)
  
          self.cursor.execute(query)
  
          return self.cursor.fetchone()[0]
docs: Read the upgrades information table and return the current db
          version
  
          Returns
          -------
          str
              the current db version