public static function encodeInsertRecord($tableName, $newRecord)
    {
        $query = "INSERT INTO $tableName VALUES (";
        $size = sizeof($newRecord);
        foreach ($newRecord as $index => $record) {
            $query .= " '$record'";
            if ($index != ($size - 1))
                $query .= " ,";
        }
        $query .= " );";
        return $query;
    }