code: def get_credentials(self, filterTerm=None):
          
  
          cur = self.conn.cursor()
  
          # if we're returning a single credential by ID
          if self.is_credential_valid(filterTerm):
              cur.execute("SELECT * FROM credentials WHERE id=? LIMIT 1", [filterTerm])
  
          # if we're filtering by username
          elif filterTerm and filterTerm != "":
              cur.execute("SELECT * FROM credentials WHERE LOWER(username) LIKE LOWER(?)", ['%{}%'.format(filterTerm.lower())])
  
          # otherwise return all credentials
          else:
              cur.execute("SELECT * FROM credentials")
  
          results = cur.fetchall()
          cur.close()
          return results
docs: Return credentials from the database.