public function createUser($tid, $username) {
$sql = "INSERT INTO user (tid, username) VALUES (?, ?)";
$stmt = $this->conn->prepare($sql);
$stmt->bind_param("ss", $tid, $username);
$stmt->execute();
if ($stmt->affected_rows > 0) {
return true;
} else {
return false;
}
}